package com.wakaca.design.pattern.behavioral.command;

/**
 * 命令实现类 - 打开视频
 * Created by wakac on 2019/4/4
 */
public class OpenCourseVideoCommand implements Command{
    private CourseVideo courseVideo;

    public OpenCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    public void execute() {
        courseVideo.open();
    }

}
